<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
</head>
<body>
<form action="charset.jsp" method="POST">
<input name="text" type="text" />
<input type="submit"/>
</form>
<br/>
<%= request.getParameter("text") %>
</body>
</html>